package com.sjgtw.cloud.job.task;


import com.sjgtw.cloud.common.core.utils.SpringUtils;
import com.sjgtw.cloud.job.service.EmergencyServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("emergencyTask")
public class EmergencyTask {

    @Autowired
    private EmergencyServerService emergencyServerService = SpringUtils.getBean(EmergencyServerService.class);

    public void process()
    {
        System.out.println("定时任务启动....."+emergencyServerService);
        emergencyServerService.getRainfallMonitoringList();
    }

}
